<?php

namespace Fronts\Model;

class Catalog {

    public $catalogId;
    public $catalogName;
    public $catalogLink;
    public $catalogParent;
    public $catalogSort;
    public $catalogDes;
    public $catalogDate;
    public $catalogUpdate;
    public $catalogActive;

    public function exchangeArray($data) {
        $this->catalogId = (isset($data["catalogId"])) ? $data["catalogId"] : null;
        $this->catalogName = (isset($data["catalogName"])) ? $data["catalogName"] : null;
        $this->catalogLink = (isset($data["catalogLink"])) ? $data["catalogLink"] : null;
        $this->catalogParent = (isset($data["catalogParent"])) ? $data["catalogParent"] : null;
        $this->catalogSort = (isset($data["catalogSort"])) ? $data["catalogSort"] : null;
        $this->catalogDes = (isset($data["catalogDes"])) ? $data["catalogDes"] : null;
        $this->catalogDate = (isset($data["catalogDate"])) ? $data["catalogDate"] : null;
        $this->catalogUpdate = (isset($data["catalogUpdate"])) ? $data["catalogUpdate"] : null;
        $this->catalogActive = (isset($data["catalogActive"])) ? $data["catalogActive"] : null;
    }

    public function setCataId($values) {
        $this->catalogId = $values;
    }

    public function setActive($value) {
        $this->catalogActive = $value;
    }

    public function getCataId() {
        return $this->catalogId;
    }

    public function getCataActive() {
        return $this->catalogActive;
    }

    public function setCataParent() {
        return $this->catalogParent;
    }

    public function getCataParent() {
        return $this->catalogParent;
    }

}
